<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <h1>{{msg}}</h1>
    <!-- 单个复选框 一般用作表单的勾选 -->
    <input type="checkbox" name="agree" v-model="isAgree">:请勾选
    <br>
    <!-- 多个复选框  一般用作于收集多个数据 可以以数组保留数据-->
    选择🐕
    <input type="checkbox" name="dog" v-model="likeDog" value="小黑">小黑
    <input type="checkbox" name="dog" v-model="likeDog" value="小白">小白
    <input type="checkbox" name="dog" v-model="likeDog" value="小花">小花
  </div>
  <script>
    Vue.config.productionTip = false;
    const vm = new Vue({
      el: "#app",
      data() {
        return {
          msg: "hello vue!",
          isAgree: false,
          likeDog: []
        }
      },
      methods: {}
    })
  </script>
</body>

</html>